const net/http.http2NextProtoTLS
9 uses
net/http (current package)
h2_bundle.go#L3272: http2NextProtoTLS = "h2"
h2_bundle.go#L3982: if !http2strSliceContains(s.TLSConfig.NextProtos, http2NextProtoTLS) {
h2_bundle.go#L3983: s.TLSConfig.NextProtos = append(s.TLSConfig.NextProtos, http2NextProtoTLS)
h2_bundle.go#L4014: s.TLSNextProto[http2NextProtoTLS] = protoHandler
h2_bundle.go#L7320: if !http2strSliceContains(cfg.NextProtos, http2NextProtoTLS) {
h2_bundle.go#L7321: cfg.NextProtos = append([]string{http2NextProtoTLS}, cfg.NextProtos...)
h2_bundle.go#L7339: if p := state.NegotiatedProtocol; p != http2NextProtoTLS {
h2_bundle.go#L7340: return nil, fmt.Errorf("http2: unexpected ALPN protocol %q; want %q", p, http2NextProtoTLS)
server.go#L2992: return strSliceContains(srv.TLSConfig.NextProtos, http2NextProtoTLS)
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)